<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
 * CodeIgniter
 *
 * An open source application development framework for PHP 5.1.6 or newer
 *
 * @package		CodeIgniter
 * @author		ExpressionEngine Dev Team
 * @copyright	Copyright (c) 2008 - 2011, EllisLab, Inc.
 * @license		http://codeigniter.com/user_guide/license.html
 * @link		http://codeigniter.com
 * @since		Version 1.0
 * @filesource
 */

/**
 * Validate email address
 *
 * @access	public
 * @return	bool
 */
if ( ! function_exists('page_config'))
{
	function page_config($base_url,$total_rows,$per_page=10,$num_links=3)
	{
	    $config['base_url'] = $base_url; 
	    $config['total_rows'] = $total_rows;
	    $config['per_page'] = $per_page;
	    $config['uri_segment'] = 3; 
	    $config['first_link']="首页";
	    $config['next_link']= '&gt;';
	    $config['prev_link']= '&lt;';
	    $config['last_link']= '末页';
	    $config['num_links']= $num_links;
	    $config['full_tag_open'] = '<p class="pages" >';
	    $config['full_tag_close'] = '</p>';
	    $config['first_tag_open'] = ' ';
	    $config['first_tag_close'] = ' ';
	    $config['last_tag_open'] = ' ';
	    $config['last_tag_close'] = ' ';
	    $config['first_url'] = ''; // Alternative URL for the First Page.
	    $config['cur_tag_open'] = '<span>';
	    $config['cur_tag_close'] = '</span>';
	    $config['next_tag_open'] = ' ';
	    $config['next_tag_close'] = ' ';
	    $config['prev_tag_open'] = ' ';
	    $config['prev_tag_close'] = ' ';
	    $config['num_tag_open'] = ' ';
	    $config['num_tag_close'] = ' ';
	    return $config;
	}
}

/* End of file page_helper.php */
/* Location: ./application/helpers/page_helper.php */